package cn.getech.data.development.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel
public class TableStatisticsVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表id
     */
    @ApiModelProperty("表id")
    private int tableId;

    @ApiModelProperty("表名")
    private String tableName;

    @ApiModelProperty("创建人姓名")
    private String createPerName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 分区数
     */
    @ApiModelProperty("分区数")
    private int partitionCount;

    /**
     * 表的记录行数
     */
    @ApiModelProperty("总行数")
    private int rowNum;

    @ApiModelProperty("新增行数")
    private int addRowNum;

    /**
     * 数据占内存大小
     */
    @ApiModelProperty("新增数据占内存大小")
    private double addSize;

    @ApiModelProperty("新增数据占内存大小")
    private String addSizeStr = "0.00B";

    /**
     * 统计时间
     */
    @ApiModelProperty("统计时间")
    private String countTime;
    /**
     *  1是 0 否
     */
    @ApiModelProperty("是否分区表")
    private Integer partitionFlag;
}
